﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="4.2.aspx.cs" Inherits="第四章._4__2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
            <div>
                <h1>计算器</h1>
            <p>
                数字1：<asp:TextBox placeholder="请输入一个数字" ID="TxtNum1" runat="server"></asp:TextBox>
            </p>
            <p>
                数字2：<asp:TextBox placeholder="请输入一个数字" ID="TxtNum2" runat="server"></asp:TextBox>
            </p>
            <p>
                选择符号：<asp:DropDownList ID="DrDoSign" runat="server">
                    <asp:ListItem Value="+">+</asp:ListItem>
                    <asp:ListItem Value="-">-</asp:ListItem>
                    <asp:ListItem Value="*">*</asp:ListItem>
                    <asp:ListItem Value="/">/</asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
            </p>
                <asp:Button type="button" ID="BtnSub" runat="server" Text="计算" OnClick="BtnSub_Click" />
                <h3><asp:Label ID="LabResult" runat="server" Text=""></asp:Label></h3>
            </div>
    </form>
</body>
</html>
